package com.yxh.sse.test;

import java.lang.reflect.InvocationTargetException;

import org.apache.commons.beanutils.PropertyUtils;

import com.yxh.sse.action.UserAction;
import com.yxh.sse.po.SysUserInfor;

public class testbeanutil {

	public void abc(UserAction user) {
		SysUserInfor usera=new SysUserInfor();
		System.out.println(user.getUsername());
		try {
			PropertyUtils.copyProperties(usera, user);
		} catch (IllegalAccessException e) {
			e.printStackTrace();
		} catch (InvocationTargetException e) {
			e.printStackTrace();
		} catch (NoSuchMethodException e) {
			e.printStackTrace();
		}
		System.out.println(usera.getUsername());
		
	}



}
